const http = uni.$u.http
import config from '@/common/config.js'

const getTokenByCode = (data) => {
	const url = `/userLogin/dyLogin`
	return http.post(url, data, {})
}

const setDyPhone = (data) => {
	const url = `/userLogin/dyPhone`
	return http.post(url, data, {})
}

const getUserInfo = (data) => {
	const url = `/userLogin/getUserInfo`
	return http.post(url, data, {})
}

export default {
	getTokenByCode,
	setDyPhone,
	getUserInfo
}